<%@ page contentType="text/html; charset=GBK" %><%@ page import="java.util.*" %><%@ page import="com.ionglobal.db.*" %><%@ page import="com.ionglobal.lib.*" %><%@ page import="com.ionglobal.misc.*" %><%@ page import="com.dhec.ggs.*"%><%
DBI dbi = new DBI();
Request Request = new Request(request);
try{
	DrawingApp drawApp = new DrawingApp();
	ArrayList arr = null;
	String picno = Request.getString("p");
	System.out.println(picno);
	int type = Request.getInt("t", 0);
	Drawing draw = drawApp.getDrawing(dbi, picno);
	if(draw!=null)
		out.print(type==0 ? draw.getDCNo() : draw.getOldPICNo());
}catch(Exception e){
	e.printStackTrace();
}finally{
	dbi.closeAll();	
}
%>